projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a51b8
)
arm: mx6: ddr: configure MMDC for slow_pd
author
Nikita Kiryanov
<
[email protected]
>
Wed, 20 Aug 2014 12:08:57 +0000
(15:08 +0300)
committer
Stefano Babic
<
[email protected]
>
Tue, 9 Sep 2014 13:35:00 +0000
(15:35 +0200)
According to MX6 TRM, both MMDC and DRAM should be configured to
the same powerdown precharge. Currently, mx6_dram_cfg()
configures MMDC for fast pd (MDPDC[7] = 0), and the DRAM for
'slow exit (DLL off)' (MR0[12] = 0).
Configure MMDC for slow pd.
Cc: Stefano Babic <
[email protected]
>
Cc: Tim Harvey <
[email protected]
>
Cc: Igor Grinberg <
[email protected]
>
Acked-by: Igor Grinberg <
[email protected]
>
Signed-off-by: Nikita Kiryanov <
[email protected]
>
Acked-by: Tim Harvey <
[email protected]
>
arch/arm/cpu/armv7/mx6/ddr.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/mx6/ddr.c
b/arch/arm/cpu/armv7/mx6/ddr.c
index 6e6f3373acebc574d0e43cd357dca95bfd749fe7..d22f232238d8078cf6a24dc16f6939b0f526bb73 100644
(file)
--- a/
arch/arm/cpu/armv7/mx6/ddr.c
+++ b/
arch/arm/cpu/armv7/mx6/ddr.c
@@
-469,6
+469,7
@@
void mx6_dram_cfg(const struct mx6_ddr_sysinfo *sysinfo,
mmdc0->mdpdc = (tcke & 0x7) << 16 |
5 << 12 | /* PWDT_1: 256 cycles */
5 << 8 | /* PWDT_0: 256 cycles */
+ 1 << 7 | /* SLOW_PD */
1 << 6 | /* BOTH_CS_PD */
(tcksrx & 0x7) << 3 |
(tcksre & 0x7);